import {ApiProperty} from '@nestjs/swagger';
import {prop, Ref} from '@typegoose/typegoose';
import {Course} from "@libs/db/models/course.model";

export class Episode {
  @ApiProperty({description: '课时名'})
  @prop()
  name: string;

  @ApiProperty({description: '视频名称'})
  @prop()
  file: string;

  @ApiProperty({description: '所属课程'})
  @prop({ref: Course})
  course: Ref<Course>
}
